<?php //debug($dcPo); ?>
<div class="widget grid5">
	<div class="whead">
		<h6>
			BUSQUEDA ORDEN DE COMPRA (P.O.)
		</h6>
		<div class="clear">
		</div>
	</div>
	<?php echo $this->
		Form->create('User', array('id' => "validate")); ?>
		<div class="formRow">
			<div class="grid3">
				<label>
					P.O. :
					<span class="req">
						*
					</span>
				</label>
			</div>
			<?php //echo $this->Form->input('username', array('placeholder' => 'Ingrese la Orden Ej: CA-009', "class" => "validate[required, ajax[ajaxvalida]]", 'label'=>false)); ?>
				<div class="grid9 searchDrop">
					<select data-placeholder="Seleccione una Orden..." class="select" style="width:350px;" tabindex="2">
						<option value="">
						</option>
                        <?php foreach($dcPo as $dc): ?>
						<option value="<?php echo $dc['Ordene']['nombre']; ?>">
							<?php echo $dc['Ordene']['nombre']; ?>
						</option>				
                        <?php endforeach; ?>		
					</select>
				</div>
				<div class="clear">
				</div>
		</div>
		<div class="formRow">
			<?php $options=array( 'label'=>
				'Reporte por orden', 'class' => 'buttonS bLightBlue', 'id' => 'btEnvia' ); echo $this->Form->end($options); ?>
				<div class="clear">
				</div>
		</div>
</div>
<div class="widget grid5">
	<div class="whead">
		<h6>
			BUSQUEDA CONTRATOS
		</h6>
		<div class="clear">
		</div>
	</div>
	<?php echo $this->
		Form->create('User', array('id' => "validate")); ?>
		<div class="formRow">
			<div class="grid3">
				<label>
					Contrato:
					<span class="req">
						*
					</span>
				</label>
			</div>
			<div class="grid9">
				<?php echo $this->
					Form->input('username', array('placeholder' => 'Ingrese la Orden Ej: CA-009', "class" => "validate[required, ajax[ajaxvalida]]", 'label'=>false)); ?>
			</div>
			<div class="clear">
			</div>
		</div>
		<div class="formRow">
			<?php $options=array( 'label'=>
				'Reorte por contrato', 'class' => 'buttonS bLightBlue', 'id' => 'btEnvia' ); echo $this->Form->end($options); ?>
				<div class="clear">
				</div>
		</div>
</div>

<div class="widget grid5">
	<div class="whead">
		<h6>
			BUSQUEDA PROVEEDOR
		</h6>
		<div class="clear">
		</div>
	</div>
	<?php echo $this->
		Form->create('Publicos', array('action'=>'busproveedor', 'id' => "validate")); ?>
		<div class="formRow">
			<div class="grid3">
				<label>
					Proveedor :
					<span class="req">
						*
					</span>
				</label>
			</div>
			<?php //echo $this->Form->input('username', array('placeholder' => 'Ingrese la Orden Ej: CA-009', "class" => "validate[required, ajax[ajaxvalida]]", 'label'=>false)); ?>
				<div class="grid9 searchDrop">
                <?php //debug($dcProveedor); ?>
					<select data-placeholder="Seleccione una Proveedor..." class="select" style="width:350px;" tabindex="2" name="data[Publicos][proveedor]">
						<option value="">
						</option>
                        <?php foreach($dcProveedor as $dp): ?>
						<option value="<?php echo $dp['contratos']['proveedor']; ?>">
							<?php echo $dp['contratos']['proveedor']; ?>
						</option>				
                        <?php endforeach; ?>		
					</select>
				</div>
				<div class="clear">
				</div>
		</div>
		<div class="formRow">
			<?php $options=array( 'label'=>
				'Reporte por orden', 'class' => 'buttonS bLightBlue', 'id' => 'btEnvia' ); echo $this->Form->end($options); ?>
				<div class="clear">
				</div>
		</div>
</div>

<div class="widget grid5">
	<div class="whead">
		<h6>
			BUSQUEDA POR TAGS
		</h6>
		<div class="clear">
		</div>
	</div>
	<?php echo $this->
		Form->create('Publicos', array('action'=>'busproveedor', 'id' => "validate")); ?>
		<div class="formRow">
			<div class="grid2">
				<label>
					TAGS :
					<span class="req">
						*
					</span>
				</label>
			</div>
				<div class="grid9 searchDrop">
                	<select data-placeholder="Seleccione un Tag..." class="select" style="width:350px;" tabindex="2" name="data[Publicos][proveedor]">
						<option value="">
						</option>
                        <?php foreach($datostags as $dt): ?>
						<option value="<?php echo $dt['tags']['id']; ?>">
							<?php echo $dt['tags']['id']; ?>
						</option>				
                        <?php endforeach; ?>		
					</select>
				</div>
				<div class="clear">
				</div>
		</div>
		<div class="formRow">
			<?php $options=array( 'label'=>
				'Reporte por Tags', 'class' => 'buttonS bLightBlue', 'id' => 'btEnvia' ); echo $this->Form->end($options); ?>
				<div class="clear">
				</div>
		</div>
</div>